#
# sample for "http://localhost/hello"
#

cc=apxs
COMPILE_FLAG=-Wall -g
INCLUDE=-I. -I/usr/apr-1.6.2/include
LIBRARY=-L. -L/usr/apr-1.6.1/lib -lapr-1

APR_TEST_OBJECTS=apr_pool_test.o

OBJECTS=$(APR_TEST_OBJECTS)
TARGETS=mod_hello
APR_SRC=mod_hello.c

all : $(APR_SRC)
	${cc} -c $(APR_SRC)

#$(TARGETS): $(OBJECTS)
#	$(cc) -o $(TARGETS) $(OBJECTS) $(LIBRARY)

#.c.o:
#	$(cc) -c $(COMPILE_FLAG) $(INCLUDE) $< -o $@

install:
	echo "LoadModule hello_module /usr/local/Phoenix/hello/mod_hello.so" > hello.conf
	echo "<Location \"/hello\">" >> hello.conf
	echo "	SetHandler hello" >> hello.conf
	echo "</Location>" >> hello.conf
	install -c -d /usr/local/Phoenix/hello
	install -c -p hello.conf /usr/local/Phoenix/
	install -c -p .libs/*.so /usr/local/Phoenix/hello

clean:
	-rm -rf *.la *.lo *.slo
	-rm -rf .libs *.conf
